package com.liao.work.ui.activity.register;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.liao.work.R;
import com.liao.work.util.SetActionBarTitle;

public class RegisterDetailActivity extends AppCompatActivity {

    private TextView info;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register_detail);
        SetActionBarTitle.setTitle(getSupportActionBar(), false, "信息");
        initView();
        Intent intent = getIntent();
        String username = intent.getStringExtra("username");
        String password = intent.getStringExtra("password");
        String sex = intent.getStringExtra("sex");
        String hobby = intent.getStringExtra("hobby");
        String text = "用户名：" + username + "\n" + "密码：" + password + "\n" + "性别：" +
                sex + "\n" + "喜欢明星：" + hobby;
        info.setText(text);
    }

    private void initView() {
        info = (TextView) findViewById(R.id.info);
    }
}
